package java3_21.Computer;

public class Test {
    public static void main(String[] args) {
        CPU1 cpu1 = new CPU1();
        HD hd = new HD();
        Memory memory = new Memory();
        Computer c = new Computer();
        Mouse m = new Mouse();
        Keyboard k = new Keyboard();
        c.setCpu(cpu1);
        c.setHd(hd);
        c.setEms(memory);
        c.setBrand("联想");
        c.setUm(m);
        c.setUk(k);
        c.print();
    }
}
